/****************************************************************************
* 
*   This file contains MQX only stationery code.
*
****************************************************************************/

#include <mqx.h>
#include <bsp.h>
#include "main.h"
#include "Application.h"

#if !BSPCFG_ENABLE_IO_SUBSYSTEM
#error This application requires BSPCFG_ENABLE_IO_SUBSYSTEM defined non-zero in user_config.h. Please recompile BSP with this option.
#endif

#ifndef BSP_DEFAULT_IO_CHANNEL_DEFINED
#error This application requires BSP_DEFAULT_IO_CHANNEL to be not NULL. Please set corresponding BSPCFG_ENABLE_TTYx to non-zero in user_config.h and recompile BSP with this option.
#endif

/*******************************************************************************/  

TASK_TEMPLATE_STRUCT MQX_template_list[] = 
{ 
/*  Task number, Entry point, Stack,   Pri, string,   Auto? */
   {MAIN_TASK,   Main_Task,   9000,    7L,  "Main",   MQX_AUTO_START_TASK, 0, 0},
   { 0 }
};

/******************FUNCTION****************************************************
* 
* Function Name  : Main_Task
* Returned Value : None
* Comments       :
*     First function called.  Calls Test_App in Application.c
* 
*****************************************************************************/
void Main_Task( uint_32 initial_data)
{   
    UNUSED_ARGUMENT (initial_data)
    App_Init();  
}
